import { Module } from '@nestjs/common';
import { PostsController } from './posts.controller';
import { PostsService } from './posts.service';
import {TypeOrmModule} from '@nestjs/typeorm'
import {PostsEntity} from './posts.entity'
import {UserEntity} from '../user/user.entity'
@Module({
  imports:[
    TypeOrmModule.forFeature([
      PostsEntity, //将创建的实体类型加载到对应模块中
      UserEntity
    ])
  ],
  controllers: [PostsController],
  providers: [PostsService]
})
export class PostsModule {}
